<?php
/**
 * Created by JetBrains PhpStorm.
 * User: JKen22078
 * Date: 8/3/13
 * Time: 10:20 PM
 * To change this template use File | Settings | File Templates.
 */
//var_dump($getsp);

?>
<?php
switch ($view):
    case 'getsp':
        //var_dump($getsp);
        $i=0;
        foreach($getsp as $type){
            $link = 'support/del_support/'.$type->id;
            //var_dump($type);die();
            echo '<div>'.$i++.'</div> <div>'.$type->type.'</div> |';
            echo '<a href = '.site_url($link).'>Delete</a><br/>';
        }
        break;
    case 'insert':
        echo form_open_multipart('support/setsupport');
    ?>
        <input type="text" name="extension" value="">
        <input type="submit" value="insert">
    <?php
        echo form_close();
        break;
    default:
        break;
endswitch;
?>
